/*
 *  Copyright 2025 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import (reference) '../../../../styles/variables.less';
@import (reference) '../../../../styles/fonts.less';

.whats-new-alert-affix {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 2000;

  .whats-new-alert-card {
    border-radius: @border-rad-lg;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-width: 420px;
    max-width: 578px;

    .ant-card-body {
      padding: 0;
    }
  }

  .whats-new-alert-left {
    background: linear-gradient(45deg, #0017e4 0%, #3793ff 100%);

    color: @white;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    min-width: 140px;
    padding: @size-lg 0;

    .whats-new-alert-rocket-icon {
      width: 30px;
      height: 30px;
    }
  }
}

.whats-new-alert-right {
  padding: 16px 16px 16px 20px;

  .whats-new-alert-subtext {
    color: @text-color-tertiary;
    font-weight: 400;
  }
}

.whats-new-alert-close.anticon {
  padding: 16px;
  color: @grey-400;
  font-size: 12px;
}

.whats-new-alert-version {
  .text-lg();
  font-weight: 600;

  color: @white !important;
}

.whats-new-alert-links {
  display: flex;
  gap: 32px;

  a.ant-btn {
    height: 28px;
    line-height: 28px;
    color: #004eeb;
    font-weight: 600;
  }
}
